package com.btpj.blog_server.mapper;

import com.btpj.blog_server.entity.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CategoryMapper {

    List<Category> getAllCategories();

    int addCategory(Category category);

    Category getCategoryByName(String name);

    int deleteCategories(@Param("ids") String[] ids);

    int updateCategory(Category category);
}
